﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="RefreshButtonTemplate.xaml" />
    </ResourceDictionary.MergedDictionaries>
    
    <Color x:Key="HeaderBlue" R="#00" G="#33" B="#99" A="#FF" />
    <Color x:Key="TitleForegroundWhite" R="#EE" G="#EE" B="#EE" A="#FF" />
    <Color x:Key="TitleBackgroundGray" R="#7F" G="#7F" B="#7F" A="#FF" />

    <Color x:Key="Maroon" R="#57" G="#00" B="#26" A="#FF" />
    <Color x:Key="LightMaroon" R="#87" G="#00" B="#56" A="#FF" />
    <Color x:Key="DarkTan" R="#70" G="#5B" B="#35" A="#FF" />
    <Color x:Key="DimTan" R="#C7" G="#B0" B="#7B" A="#FF" />
    <Color x:Key="Tan" R="#E8" G="#D9" B="#AC" A="#FF" />
    <Color x:Key="LightTan" R="#FF" G="#F6" B="#D9" A="#FF" />

    <Color x:Key="TxtBackground" R="#57" G="#00" B="#26" A="#FF" />
    <Color x:Key="TxtForeground" R="#FF" G="#F6" B="#D9" A="#FF" />
    <Color x:Key="HighBackground" R="#87" G="#00" B="#56" A="#FF" />
    <Color x:Key="LowBackground" R="#29" G="#00" B="#13" A="#FF"/>
    <Color x:Key="GlyphColor" R="#E8" G="#D9" B="#AC" A="#FF" />
    <Color x:Key="DisabledForegroundColor" R="#70" G="#5B" B="#35" A="#FF" />
    <Color x:Key="DisabledBackgroundColor" R="#87" G="#00" B="#56" A="#FF" />

    <SolidColorBrush x:Key="GroupTitleFg" Color="{StaticResource LightTan}" />

    <LinearGradientBrush x:Key="GroupTitleBg" StartPoint="0,0" EndPoint="1,1">
        <GradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop Color="{StaticResource LightMaroon}" Offset="0.1" />
                <GradientStop Color="{StaticResource Maroon}" Offset="1.0" />
            </GradientStopCollection>
        </GradientBrush.GradientStops>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="LayoutBackground" StartPoint="0, 0" EndPoint="1, 1">
        <GradientStopCollection>
            <GradientStop Color="{StaticResource LightTan}" Offset="0.0" />
            <GradientStop Color="{StaticResource DimTan}" Offset="1.0" />
        </GradientStopCollection>
    </LinearGradientBrush>

    <SolidColorBrush x:Key="LightInteraction" Color="{StaticResource Tan}" />
    <SolidColorBrush x:Key="DarkInteraction" Color="{StaticResource DarkTan}" />

    <Style x:Key="Base" TargetType="FrameworkElement">
        <Setter Property="Margin" Value="3" />
        <Setter Property="MinHeight" Value="21" />
    </Style>

    <Style TargetType="TextBox" BasedOn="{StaticResource Base}" />
    <Style TargetType="Label" BasedOn="{StaticResource Base}" />

    <Style x:Key="LayoutGrid" TargetType="Grid" BasedOn="{StaticResource Base}">
        <Setter Property="Background" Value="{StaticResource LayoutBackground}" />
        <Setter Property="Margin" Value="0" />
    </Style>

    <Style TargetType="GridSplitter" BasedOn="{StaticResource Base}">
        <Setter Property="Margin" Value="0" />
    </Style>

    <Style TargetType="Button" BasedOn="{StaticResource Base}" >
        <Setter Property="MinHeight" Value="21" />
        <Setter Property="MinWidth" Value="70" />
    </Style>

    <Style x:Key="RefreshButton" BasedOn="{StaticResource RefreshButtonStyle}" TargetType="Button">
        <Setter Property="MinHeight" Value="21" />
        <Setter Property="MinWidth" Value="21" />
        <Setter Property="ContentTemplate" >
            <Setter.Value>
                <DataTemplate>
                    <Border>
                        <Image Source="112_RefreshArrow_Green_24x24_72.png" Width="24" />
                    </Border>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="TitlePanel" TargetType="Panel" BasedOn="{StaticResource Base}">
        <Setter Property="Background" Value="{StaticResource GroupTitleBg}" />
        <Setter Property="Margin" Value="0" />
    </Style>

    <Style x:Key="GroupTitle" TargetType="Label" BasedOn="{StaticResource Base}">
        <Setter Property="FontSize" Value="14" />
        <Setter Property="FontWeight" Value="Demibold" />
        <Setter Property="Foreground" Value="{StaticResource GroupTitleFg}" />
    </Style>
    
</ResourceDictionary>